package com.gosling.cloudspace.common.entity;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;
import java.util.Map;

/**
 * 去掉分页查询
 *
 * @classname PageInfoNoPage
 * @author: osc_lihonglin
 * @date: 2021/12/16 15:58
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class PageInfoNoPage implements java.io.Serializable {
   @ApiModelProperty(value = "总记录")
   private int total;
   @ApiModelProperty(value = "显示的记录")
   private List<?> rows;
   private String columns;
   private List<?> footer;
   private String msg;
   @ApiModelProperty(value = "查询条件")
   @JsonIgnore
   private Map<String, Object> condition;
   @ApiModelProperty(value = "排序字段")
   @JsonIgnore
   private String sort = "";
   @ApiModelProperty(value = "asc，desc mybatis Order 关键字")
   @JsonIgnore
   private String order = "desc";
   private String moduleName;
   @ApiModelProperty(value = "返回数据状态码 成功状态码 0")
   private Integer code = 0;
   @ApiModelProperty(value = "排序字段")
   private String orderFields;
   @ApiModelProperty(value = "分组字段")
   private String groupFields;
   private String tableName;
   private List<String> fields;
   private Map<String, String> searchCondition;
   private Map<String, Object> params;
   private List<String> searchFields;
   private String searchContent;
   private String searchContains;
   private String searchNotContains;
}
